package com.jdrx.sw.sewage.beans.dto;

import java.time.LocalDate;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdrx.platform.commons.rest.beans.dto.PageBaseDTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "查询水质化验报表参数", description = "查询水质化验报表参数")
@Data
@EqualsAndHashCode(callSuper = false)
public class WaterQualityTestQueryDTO extends PageBaseDTO {
	private static final long serialVersionUID = 6228037700953305765L;
	
	@ApiModelProperty(value = "模板id")
	private Long templateId;
	
	@ApiModelProperty(value = "化验日期开始yyyy-MM-dd")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern = "yyyy-MM-dd")
	private LocalDate startTestDate;
	
	@ApiModelProperty(value = "化验日期结束yyyy-MM-dd")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern = "yyyy-MM-dd")
	private LocalDate endTestDate;
}